package com.whfc.iot.mach.entity;

import com.whfc.iot.mach.constant.MsgConst;
import lombok.Data;

@Data
public class MachMsg0x8A extends MachMsg {

    /**
     * 确认结果:1-成功 2-失败
     */
    private int result;

    public MachMsg0x8A() {
        this.setCmd(MsgConst.DOWNSTREAM_CMD_0x8A);
    }

    public MachMsg0x8A(int result) {
        this.setCmd(MsgConst.DOWNSTREAM_CMD_0x8A);
        this.result = result;
    }

    @Override
    public int getDataLength() {
        return 1;
    }
}
